<template>
  <div>
    <h1>欢迎使用智能报表平台{{orgName}}</h1>
  </div>
</template>

<script>
  import store from '@/store'
  export default {
    name: 'WelcomePage',
    data () {
      return {
        orgName: "",
      }
    },
    watch :{
      "$store.state.selectedOrg.name":{
        handler:function(newVal){
          this.orgName = "（" + newVal +"）"
        }
      }
    },
    methods: { },
    mounted () {
      this.orgList = this.$store.getters.orgs
      const org = this.$store.getters.selectedOrg
      if ( org && org.name){
        this.orgName = "（" + org.name +"）"
      }
    },
  }
</script>

<style scoped>
h1{
  font-size: 50px;
  text-align: center;
  line-height: 280px;
  font-weight: 500;
  color: rgba(0, 0, 0, .85);
  font-family: fangsong;
}
</style>
